class Product < ActiveRecord::Base
  belongs_to :warehouse
  has_many :items
  
  #====== validations =========
  validates_presence_of :name, :warehouse_id, :unit
  validates_numericality_of :quantity
  
end
